<div data-role="header">
    <a href="#myPanel" class="ui-btn ui-icon-grid ui-btn-icon-left">菜单</a>
    <h1>订单管理</h1>
    <a href="javascript:history.back(-1);" class="ui-btn ui-icon-back ui-btn-icon-left">返回</a>
</div>
<style type="text/css">
    .ui-link{margin: 5px}
</style>

<div data-role="main" class="ui-content">
    <a href="#uedcool" data-rel="popup">订单状态</a>
    <div data-role="popup" id="uedcool">
        <ul data-role="listview" data-inset="true" style="min-width:210px;">
            <?php foreach($status as $k => $v):?>
            <li>
                <a href="<?=site_url('order/index?sid='.$k)?>"><?=$v?> <?=$count[$k]?></a>
            </li>
            <?php endforeach;?>
        </ul>
    </div>
    <ul data-role="listview" data-inset="true">
        <?php foreach($list as $k => $v):?>
        <li>
            <a href="<?=site_url('order/oinfo?oid='.$v['id'])?>">
            <h2><span style='color:red'>[<?=$v['status_name']?>]</span>   <?=$v['id']?></h2>
                <p><?=$v['remarks']?></p>
            </a>
        </li>
        <?php endforeach;?>
    </ul>
    <div style="margin-top: 20px">
        <?=$page?>
    </div>
</div>